package com.gopay.cashier.security;

import org.apache.shiro.authc.RememberMeAuthenticationToken;

import com.gopay.cashier.domain.bean.LoginUser;

public class CashierCasToken implements RememberMeAuthenticationToken {

	private static final long serialVersionUID = 8587329689973009598L;

	private String ticket = null;

	private LoginUser loginUser = new LoginUser();

	private boolean isRememberMe = false;

	public CashierCasToken(String ticket) {
		this.ticket = ticket;
	}

	public Object getPrincipal() {
		return loginUser;
	}

	public Object getCredentials() {
		return ticket;
	}

	public LoginUser getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(LoginUser loginUser) {
		this.loginUser = loginUser;
	}

	public boolean isRememberMe() {
		return isRememberMe;
	}

	public void setRememberMe(boolean isRememberMe) {
		this.isRememberMe = isRememberMe;
	}
}
